
class BaseController {

    constructor(req, res, nunjucks) {

        this.req = req;
        this.res = res;
        this.nunjucks = nunjucks;
        this.nunjucks.configure('./home/html', { autoescape: true });//配置模板的目录

    }

    display(path,data){
        return this.nunjucks.render(path,data);
    }


}

module.exports = BaseController;